package o;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.huawei.appgallery.foundation.store.bean.detail.DetailResponse;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;

public class dlt extends dlw {
    private String ˎ = null;

    public dlt(Context context, String str) {
        super(context);
        this.ˎ = str;
    }

    protected cvt ˏ() {
        return cfv.ˎ(this.ˎ, "", ccz.ॱ(), 1);
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        int i;
        if (responseBean != null) {
            DetailResponse detailResponse = (DetailResponse) responseBean;
            if (detailResponse.getResponseCode() == 0 && detailResponse.getRtnCode_() == 0) {
                i = 0;
            } else {
                Logger.e("OOBE", "OOBEGetAppDetailTask failed. responseCode=" + detailResponse.getResponseCode() + " returnCode=" + detailResponse.getRtnCode_());
                i = 1;
            }
        } else {
            i = 1;
        }
        Intent intent = new Intent("com.huawei.appmarket.oobe.ACTION_GETAPPDETAIL_RESULT");
        intent.putExtra("resultCode", i);
        if (i == 0) {
            Bundle bundle = new Bundle();
            bundle.putSerializable("response", (DetailResponse) responseBean);
            intent.putExtras(bundle);
        }
        if (this.ˏ != null) {
            Context context = (Context) this.ˏ.get();
            if (context != null) {
                ll.ˏ(context).ˋ(intent);
            }
        }
    }
}
